﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Actives
{
    public class ActiveRecord : FullAuditedEntity<long>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 活动id
        /// </summary>
        public long ActiveId { get; set; }
        [ForeignKey("ActiveId")]
        public virtual Active Active { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        public string ItemIds { get; set; }
        /// <summary>
        /// 已完成次数
        /// </summary>
        public int QueryTimes { get; set; }
        /// <summary>
        /// 是否结束
        /// </summary>
        public bool IsFinish { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
